/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: UserFeignClient
 * Author:   kadibeieun
 * Date:     2019/9/4 14:42
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.afd.consumer.api;


import com.afd.consumer.fallback.UserFeignClientFallback;
import com.afd.consumer.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author kadibeieun
 * @create 2019/9/4
 * @since 1.0.0
 */
@FeignClient(value = "user-service",fallback = UserFeignClientFallback.class)
public interface UserFeignClient {
    /**
     * 调用服务提供者的接口
     * @param id
     * @return
     */
    @RequestMapping(value = "/user/{id}",method = RequestMethod.GET)
    User queryUserById(@PathVariable("id") Long id);
}